<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui"
      xmlns:f="http://java.sun.com/jsf/core">
    <ui:composition template="index.xhtml">
        <ui:define name="body">
            <h:form>
                <div id="breadcrumb">
                    <p:commandLink  value="Inicio" actionListener="#{managerRedirect.redirect('viewExecutor.xhtml')}" update="@form" immediate="true"/> >
                    <p:commandLink  value="Juíz" actionListener="#{managerRedirect.redirect('viewExecutor.xhtml')}" update="@form" immediate="true"/> >
                    <p:commandLink  value="Controle de Acesso" update="@form" immediate="true"/>
                </div>
            </h:form> 
            <p:panel header="Nível da Acesso" style=" width: 100%">
                <h:form id="form" acceptcharset="utf-8">
                    <p:growl id="msg" life="3000"/>

                    <fieldset style="border: 1px solid #E3E3E3; color: #3DA2DC; font-size: 13px;">
                        <legend>Escolher Nível de Acesso</legend>
                        <br/>
                        <h:panelGrid columns="2" style="font-size: 12px; color:#000000; font-family: sans-serif">
                            <h:outputLabel value="Usuário :" style="font-weight: bold"/>
                            <h:outputLabel value="#{managerCreateAcess.executor.name}" />
                            <h:outputLabel value="Acesso :" style="font-weight: bold; float: right"/>
                            <p:selectCheckboxMenu value="#{managerCreateAcess.groups}" label="" converter="groupsConverter" 
                                                  panelStyle="width:319px" 
                                                  style="width: 319px; height: 25px;">    
                                <f:selectItems value="#{managerCreateAcess.listAllGroups()}" var="lcs" itemLabel="#{lcs.name}" />  
                            </p:selectCheckboxMenu>

                        </h:panelGrid>
                    </fieldset>

                    <br/>
                    <center>
                        <p:commandButton value="Salvar" icon="ui-icon-document" style=" width: 85px; font-size: 12px; font-family: sans-serif;" actionListener="#{managerCreateAcess.update()}" update="msg, @form"/>
                        <p:commandButton value="Cancelar" icon="ui-icon-close" style="font-size: 12px; font-family: sans-serif;" actionListener="#{managerRedirect.redirect('viewExecutor.xhtml')}" immediate="true"/>
                    </center>

                </h:form>
            </p:panel>
        </ui:define>
    </ui:composition>

</html>


